-- GENERATED SPELL FOR [Stonevault Bonesnapper] --


function spell0_2893(pUnit, Event) --@Pummel,n/a--
pUnit:FullCastSpellOnTarget(12555,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2893', 5341, 1)
end

function spell1_2893(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(11976,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2893', 635, 1)
end

function Sorts_2893(pUnit, Event)
local choix_sorts_2893 = math.random(0, 1)
if choix_sorts_2893 == 0 then
pUnit:RegisterEvent('spell0_2893', 1, 1)
end
if choix_sorts_2893 == 1 then
pUnit:RegisterEvent('spell1_2893', 1, 1)
end
end

function mob2893_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2893', math.random(1500, 3000), 1)
end

function mob2893_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2893_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2893_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2893, 1, 'mob2893_Action')
RegisterUnitEvent(2893, 2, 'mob2893_Leave')
RegisterUnitEvent(2893, 3, 'mob2893_Kill')
RegisterUnitEvent(2893, 4, 'mob2893_Die')
